#{extends 'frame.html' /}

#{set title:'资金账号管理' /}



#{set 'moreStyles'}

<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/admin/fund-account.css'}" />

<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/jquery.pagination.css'}" />

#{/set}



<div class="contentCard">

	<div class="contentTitle">账号列表</div>

	<div id="taskFilterPanel">

		<span class="floatLeft mr10">账户ID</span>

		<input type="text" id="no" class="inputText floatLeft mr10" />

		<span class="floatLeft mr10">用户昵称</span>

		<input type="text" id="userNick" class="inputText floatLeft mr10" />

		<span class="floatLeft mr10">账户姓名</span>

		<input type="text" id="name" class="inputText floatLeft mr10" />

		<span class="floatLeft mr10">账户类型</span>

		<select class="floatLeft mr10 mt4" id="type">

			<option value="">全部</option>

			#{list items:payPlatforms, as:'p'}

			<option value="${p}" ${p.toString()=='TENPAY'?'selected':''}>${p?.title}</option>

			#{/list}

		</select>



		<a class="stdColorButton floatLeft queryBtn"  href="javascript:;" id="queryBtn">查询</a>

	</div>

	<div class="">

		<table class="normTable">

			<thead>

				<tr>

					<td>昵称</td>

					<td>账户ID</td>

					<td>账户姓名</td>

					<td>账户类型</td>

					<td>开户行</td>

					<td>创建时间</td>

					<td>操作</td>

				</tr>

			</thead>

			<tbody id="accountContainer"></tbody>

		</table>

		<div id="noMsg">

			<div class="warnBox">

				<span class="iconfont">&#xf00b6;</span>

				没有数据!

			</div>

		</div>

		<div class="pagin-btm clearFix" style="display: none;">

			<div class="pagination"></div>

		</div>

		<div class="popWrapper" style="display: none;" id="tr_loading_mask">

			<div class="maskLayer"></div>

			<img class="tr_juhua" src="@{'/public/images/pre_loading.gif'}" />

		</div>

	</div>

</div>



<!-- 信息修改窗口-->

<div class="popWrapper" id="editWnd">

	<div class="maskLayer"></div>

	<div class="modalWnd">

		<a href="javascript:;" class="wnd_Close_Icon" title="关闭窗口"></a>

		<h3 class="topTile">修改财付通账号</h3>

		<div class="modalWndInner">

		    <div class="panelLine">

				<span class="floatLeft mr10">原姓名：</span>

				<span id="oldName"></span>

			</div>

			<div class="panelLine">

				<span class="floatLeft mr10">新姓名：</span>

				<input type="text" class="bold required inputText" id="newName"></div>

			<div class="panelLine">

				<span class="floatLeft mr10">原账号：</span>

				<span id="oldAccount"></span>

			</div>

			<div class="panelLine">

				<span class="floatLeft mr10">新账号：</span>

				<input type="text" class="bold required inputText" id="newAccount"></div>

		</div>

		<div class="wndBotButtonSection">

			<a id="btnSave" href="javascript:;" class="botButton" data-bid="" data-uid="">保存</a>

		</div>

	</div>

</div>

<!-- 银行信息修改窗口 -->

<div class="popWrapper" id="bankEditWnd">

	<div class="maskLayer"></div>

	<div class="modalWnd">

		<a href="javascript:;" class="wnd_Close_Icon" title="关闭窗口"></a>

		<h3 class="topTile">修改银行卡信息</h3>

		<div class="modalWndInner">

			<div class="panelLine mb10 ml20">

				<label>开户人姓名</label>

				<input type="text" class="inputText mr20 required" id="txtBankName" value="" name="name"/>

			</div>

			<div class="panelLine mb10 ml20">

				<label>选择银行</label>

				<select class="" id="txtBankType">

					#{list items:payPlatforms, as:'p'}

					<option value="${p}">${p.title}</option>

					#{/list}

				</select>

			</div>

			<div class="panelLine mb10 ml20">

				<label>银行卡号</label>

				<input type="text" class="inputText mr20 required" id="txtBankNo" value="" name="bankNO"/>

			</div>

			<div class="panelLine mb10 ml20">

				<label>旧地区</label>

				<span id="oldAddress"></span>

			</div>

			<div class="panelLine mb10 ml20" id="quyu">

				<label>地区</label>

				<select class="ls province" id="first">

					<option value="" selected="selected">请选择</option>

					#{list items: regions, as:'re'}

					<option rid="${re.id}">${re.name}</option>

					#{/list}

				</select>

				<select class="ls city" id="second">

					<option value="" selected="selected">请选择</option>

				</select>

				<input type="hidden" class="required" id="address" name="address"/>

			</div>

			<div class="panelLine mb10 ml20">

				<label>开户支行</label>

				<input type="text" class="inputText mr20 required" id="txtOpeningBank" value="" name="opengingBank"/>

			</div>			

		</div>

		<div class="wndBotButtonSection">

			<a id="btnBankSave" href="javascript:;" class="botButton" data-bid="" data-uid="">保存</a>

		</div>

	</div>

</div>

<!-- 支付宝弹出框样式 -->

<div class="popWrapper" id="alipayEditWnd">

	<div class="maskLayer"></div>

	<div class="modalWnd">

		<a href="javascript:;" class="wnd_Close_Icon" title="关闭窗口"></a>

		<h3 class="topTile">修改支付宝账号</h3>

		<div class="modalWndInner">

		    <div class="panelLine">

				<span class="floatLeft mr10">原姓名：</span>

				<span id="oldAlipayName"></span>

			</div>

			<div class="panelLine">

				<span class="floatLeft mr10">新姓名：</span>

				<input type="text" class="bold required inputText" id="newAlipayName"></div>

			<div class="panelLine">

				<span class="floatLeft mr10">原账号：</span>

				<span id="oldAlipayAccount"></span>

			</div>

			<div class="panelLine">

				<span class="floatLeft mr10">新账号：</span>

				<input type="text" class="bold required inputText" id="newAlipayAccount"></div>

		</div>

		<div class="wndBotButtonSection">

			<a id="btnAlipaySave" href="javascript:;" class="botButton" data-bid="" data-uid="">保存</a>

		</div>

	</div>

</div>

<!--keyword muban-->

<textarea class="muban" id="trowTemp">

	{{#results}}

	<tr data-bid="{{id}}">

		<td>{{userNick}}</td>

		<td class="no">{{no}}</td>

		<td class="name">{{name}}</td>

		<td>

			<div class="wid floatLeft ls rad0 bankType" type="{{type}}"><img src="/public/images/bank/{{type}}.gif" /></div>

		</td>

		<td ><span class="oldAddress">{{address}}</span><span class="openingBank">{{openingBank}}</span></td>

		<td class="createtime">{{createtime}}</td>

		<td>

		{{#isTenpay}}

			<input type="button" class="J_edit queryBtn red bold" href="javascript:;" value=" 修改 " data-name="{{name}}" data-no="{{no}}" data-uid="{{userId}}">

		{{/isTenpay}}

		{{#isAlipay}}

			<input type="button" class="J_alipayEdit queryBtn red bold" href="javascript:;" value=" 修改 " data-name="{{name}}" data-no="{{no}}" data-uid="{{userId}}">

		{{/isAlipay}}

		{{#isBank}}

		    <input type="button" class="J_bankEdit queryBtn red bold" href="javascript:;" value=" 修改 "  data-no="{{no}}" data-uid="{{userId}}">

		{{/isBank}}

		</td>

	</tr>

	{{/results}}

</textarea>

<textarea id="quyuTemp" class="muban">

	{{#results}}

	<option rid="{{id}}">{{name}}</option>

	{{/results}}

</textarea>



#{set 'moreScripts'}

<script src="@{'/public/javascripts/jquery.pagination.js'}" type="text/javascript"></script>

<script src="@{'/public/javascripts/mustache.min.js'}" type="text/javascript"></script>

<script src="@{'/public/javascripts/admin/fundAccount.js'}" type="text/javascript"></script>

<script type="text/javascript">App.module = 'fundAccount';</script>

#{/set}